<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
      layout:decorate="~{layout/layout}">
<head>

</head>
<body>
<div layout:fragment="content">

    <h1 th:text="#{report.view}">商品报告浏览</h1>
    <div class="form-horizontal">
        <div class="form-group">
            <div class="col-sm-1">
                <span th:text="#{item.no}">货号</span>
            </div>
            <div class="col-sm-2">
                <span th:text="${item.no}">货号</span>
            </div>
            <div class="col-sm-1">
                <span th:text="#{item.name}">品名</span>
            </div>
            <div class="col-sm-2">
                <span th:text="${item.name}">货号</span>
            </div>
            <div class="col-sm-2">
                <span th:text="#{item.lastDate}">索取时间</span>
            </div>
            <div class="col-sm-2">
                <span th:text="${item.lastDate}">索取时间</span>
            </div>
            <div class="col-sm-1">
                <a href="/item/list" th:href="@{/item/list}" class="btn btn-info" th:text="#{back}">返回</a>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-3" th:each="imageUrl, stat : ${imageUrlList}">
                <div><a th:href="@{'/' + ${item.no} + '/' + ${imageUrl}}" target="_blank">
                    <img width="200" height="200" th:src="@{'/' + ${item.no} + '/' + ${imageUrl}}"/>
                </a>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>
